<?php $SS = new Zend_Session_Namespace ('Language');

$lang = $SS->language;

$langDetail = "Chi tiết";
if($lang == "en"){
$langDetail = "Detail";  
}elseif($lang == "chi"){
$langDetail = "細節";
}

$langService = "Dịch vụ";
                                  if($lang == "en"){
                                  $langService = "Service";  
                                  }elseif($lang == "chi"){
                                  $langService = "服務";  
                                  } 
?>
<div class="head-content"><?php echo $langService;?></div>
<div class="news-fix service-fix">
    <?php foreach($this->data as $vl):?>
    
    <?php $name = $vl['title'];
          if($lang == "en"){
          $name = $vl['title_en'];  
          }elseif($lang == "chi"){
          $name = $vl['title_china'];
          } 
          
          $desc = $vl['description'];
          if($lang == "en"){
          $desc = $vl['description_en'];  
          }elseif($lang == "chi"){
          $desc = $vl['description_china'];
          } 
    ?>
    <div class="item">
        <div class="image">
            <a href="<?php echo "/dich-vu/".$vl['id']."-".$this->cleanstring($lang == "en" ? $vl['title_en'] : $vl['title']).".html";?>" title="<?php echo $lang == "en" ? $vl['title_en'] : $vl['title'];?>"><img src="<?php echo $this->baseUrl()."/".$vl['image'];?>" alt="<?php echo $lang == "en" ? $vl['title_en'] : $vl['title'];?>" width="206" height="134"/></a>
        </div>
        <div class="info">
        <p class="title"><a href="<?php echo "/dich-vu/".$vl['id']."-".$this->cleanstring($lang == "en" ? $vl['title_en'] : $vl['title']).".html";?>" title="<?php echo $lang == "en" ? $vl['title_en'] : $vl['title'];?>"> <?php echo $this->Substring($name,  50);?></a></p>
            <p class="desc"><?php echo $this->Substring($desc, 300);?></p>
            <p class="bt-news-detail"><a href="<?php echo "/dich-vu/".$vl['id']."-".$this->cleanstring($lang == "en" ? $vl['title_en'] : $vl['title']).".html";?>" title="<?php echo $lang == "en" ? $vl['title_en'] : $vl['title'];?>"> >> <?php echo $langDetail;?></a></p>
        </div>
    </div>
    <?php endforeach;?>
                                                                                                                                                           
</div>
<div class="pagination pagination-centered">
<?php echo $this->paginationControl($this->data, 'Sliding', 'pagination.phtml'); ?>
</div>